<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="favicon.ico" rel="shortcut icon" />
<link rel="canonical" href="{$config_siteurl}" />
<title><if condition=" isset($SEO['title']) && !empty($SEO['title']) ">{$SEO['title']}</if>{$SEO['site_title']}</title>
<meta name="description" content="{$SEO['description']}" />
<meta name="keywords" content="{$SEO['keyword']}" />
<script src="{$config_siteurl}statics/js/jquery.js" type="text/javascript"></script>
<link href="{$config_siteurl}statics/default/css/layout.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="{$model_extresdir}baoming.css" rel="stylesheet" />
</head>
<body>
<template file="Content/header.php"/>
<div style="clear: both"></div>
<div class="main_box mt_10">
    <div class="ad">
        <img src="{$config_siteurl}statics/images/ad/ad2.jpg">
    </div>
</div>
<div style="clear: both"></div>
<div class="main_box mt_10">
    <div class="article_list_left right mb_10">
        <div class="map border_light_org">
            <span class="home_ico">当前位置：<a href="{$config_siteurl}">书林学校</a> &gt; 在线报名 </span>
            <p style="float:right;padding-right:15px;"></p>
        </div>
        <div style="clear:both"></div>
        <div class="zxbm mt_20 ml_20"><img src="{$config_siteurl}statics/images/zxbm.png"></img></div>
        <div class="forms_table">
            <form action="{:U('Index/addBaoming')}" method="post" onsubmit="return CheckForm(this)">
                <dl>
                    <dt> 姓名：</dt>
                    <dd><input name="username" id="Username" size="50" type="text" class="search_input" onchange="checkUsername(this.value)"><span class="bitian">*</span></dd>
                    <dt> 姓别：</dt>
                    <dd>
                        <label class="search_radio">
                            <input name="usersex" value="1" checked="checked" type="radio">
                            <span>男</span>
                        </label>
                        <label class="search_radio">
                            <input name="usersex" value="1" type="radio">
                            <span>女</span>
                        </label>
                        <span class="bitian">*</span>
                    </dd>
                    <dt> 年龄：</dt>
                    <dd><input name="userage"  size="50" type="text" class="search_input"></dd>
                    <dt> 电话：</dt>
                    <dd><input name="usertel" id="usertel" size="50" type="text" class="search_input" onchange="checkUsertel(this.value)"><span class="bitian">*</span></dd>
                    <dt> QQ：</dt>
                    <dd><input name="userqq" id="userqq" size="50" type="text" class="search_input" onchange="checkUserqq(this.value)"><span class="bitian">*</span></dd>
                    <dt> 报考类型：</dt>
                    <dd> 
                        <select name="kemu" class="search_select">
                           <option value='1'>高补文科</option>
                           <option value='2'>高补理科</option>
                           <option value='3'>艺考补习</option>
                           <option value='4'>中补</option>
                           <option value='5'>高三应届</option>
                           <option value='6'>初三应届</option>
                        </select>
                        <span class="bitian">*</span>
                    </dd>
                    <dt> 备注：</dt>
                    <dd><textarea name="beizhu" id="beizhu"  rows="5" cols="60" class="search_textarea"></textarea></dd>
                    <dt>&nbsp;</dt>
                    <dd><input name="dosubmit" id="dosubmit" value=" 提  交  " class="button" type="submit"><input name="dosubmit" id="dosubmit" value="重  置 " class="button_c" type="reset"></dd>
                </dl>
            </form>
        </div>
    </div>
    <div class="article_list_right left mb_10">
        <div class="navigation">
            <div class="title"> 快捷导航 </div>
            <ul>
                <li><a href="index.php?a=lists&catid=24" target="_self">学校简介</a></li>
				<li><a href="index.php?a=lists&catid=6" target="_self">校园环境</a></li>
                <li><a href="index.php?a=lists&catid=11" target="_self">学校动态</a></li>
				<li><a href="index.php?a=lists&catid=30" target="_self">教学管理</a></li>
				<li><a href="index.php?a=lists&catid=5" target="_self">师资力量</a></li>
				<li><a href="index.php?a=lists&catid=3" target="_self">学子风采</a></li>
                <li><a href="index.php?a=lists&catid=14" target="_self">学习园地</a></li>
                <li><a href="index.php?a=lists&catid=27" target="_self">联系我们</a></li>
            </ul>
            <div style="clear:both"></div>
        </div>
        <!--div class="navigation">
            <div class="title"> 快捷导航  </div>
            <ul> 
                <content action="category" catid="getCategory($catid)"  order="listorder ASC" >
                    <volist name="data" id="vo">
                        <li><a href='{$vo.url}' <if condition=" $catid eq $vo['catid'] "> class='thisclass'</if>  title="{$vo.catname}">{$vo.catname}</a> <span class="right">{$vo.catdir}</span></li>
                    </volist>
                </content>
            </ul>
            <div style="clear:both"></div>
        </div>
        -->
        <div class="rand_pic mt_10">
            <div class="title"> 招生热线  </div>
            <div class="mt_10 mb_10"><img src="{$config_siteurl}statics/images/tels.png"></div>
        </div>
        <div class="mt_10"><a href="baoming.php" target="_self"><img src="{$config_siteurl}statics/images/baoming.png" width="270" height="83"></a></div>
        <div class="mt_10"><a href="guestbook.php" target="_self"><img src="{$config_siteurl}statics/images/message.png" width="270" height="83"></a></div>
        <div class="mt_10"><a href="index.php?a=lists&catid=9" target="_self"><img src="{$config_siteurl}statics/images/honor.png"></a></div>
    </div>
</div>
<template file="Content/footer.php"/>
<script type="text/javascript">
	function checkUsername(value){
		if(value==''){
			alert("你没有输入姓名！");
			return false;
		}
	} 
    function checkUserqq(value){
        if(!isInteger(value) || value < 10000){
			alert("请输入正确的QQ号码！");
			return false;
        }
    }
    function checkUsertel(value){
    	var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/; 
    	if(!myreg.test(value)) { 
    	    alert('请输入有效的手机号码！'); 
    	    return false; 
    	} 
    }
    function checkcontent_l(value){
		if(value==''){
			alert("你没有输入留言内容！");
			return false;
		}
    }
    function isInteger(obj) {
        return obj%1 === 0
   	}
   	function CheckForm(){	
   	   	var Username=$("#Username").val();
      	if(Username==''){
 			alert("你没有输入姓名！");
 			return false;
 		}

      	var usertel=$("#usertel").val();
      	var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/; 
    	if(!myreg.test(usertel)) { 
    	    alert('请输入有效的手机号码！'); 
    	    return false; 
    	} 
    	var userqq=$("#userqq").val();
 		if(!isInteger(userqq) || userqq < 10000){
			alert("请输入正确的QQ号码！");
			return false;
        }
   	}
</script>
</body>
</html>